package com.huawei.smartcity0102.news;

import android.view.View;
import android.webkit.WebView;

import com.huawei.smartcity0102.Base;
import com.huawei.smartcity0102.R;
import com.huawei.smartcity0102.home.F_Home;
import com.huawei.smartcity0102.model.newlist;
import com.huawei.smartcity0102.util.Http;

/**
 * @author ZengYunyi
 * @description:
 * @date :2022/1/2 13:54
 */
public class F_News1 extends Base {
    private WebView web;

    @Override
    protected int layId() {
        return R.layout.web;
    }

    @Override
    protected String title() {
        return "";
    }

    @Override
    protected Boolean back() {
        return true;
    }

    @Override
    protected Boolean bottom() {
        return null;
    }

    @Override
    protected void init(View iv) {
        initView(iv);
        newlist.RowsDTO data= F_Home.news;
        title.setText(data.getTitle());
        web.loadDataWithBaseURL(Http.base,data.getContent(),"text/html","utf-8",null);

    }

    private void initView(View iv) {
        web = (WebView) iv.findViewById(R.id.web);
    }
}
